//
//  YSProdSkuView.h
//  Yueshi
//
//  Created by Northwan on 15/7/25.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YSProductDetailRes.h"
#import "SkuSelectView.h"
#import "CalcView.h"
@protocol YSProdSkuViewDelegate <NSObject>

@optional
/**
 *  确定按钮点击
 *
 *  @param count 当前选购的数量
 *  @param type  用户点击的是否是立即抢购
 */
- (void)buyBtnClickWtihCount:(NSUInteger)count type:(BOOL)type;
@end


@interface YSProdSkuView : UIView
@property (nonatomic, weak) id<YSProdSkuViewDelegate> delegate;
@property (nonatomic, strong) CalcView *calcView;
@property (nonatomic, assign) BOOL type;

-(instancetype)initWithProdDetail:(YSProductDetailRes *)prodDetail;



-(NSUInteger)getSelectIndex;
-(BOOL)hasOneChecked;
-(void)clearSelected;
@end
